home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / util / gnu / cvs-1.11.1p1.lha / source / smakefile < prev   
Encoding:
Makefile  |  2001-07-23  |  6.1 KB  |  232 lines

  1. # $Id$
  2. #
  3. # :ts=4
  4. #
  5. # AmigaOS wrapper routines for GNU CVS, using the AmiTCP V3 API
  6. # and the SAS/C V6.58 compiler.
  7. #
  8. # Written and adapted by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9. #                        Jens Langner <Jens.Langner@htw-dresden.de>
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. # GNU General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to the Free Software
  23. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. #
  25.  
  26. # This is an extremely simple smakefile which could have been
  27. # rewritten to be a script file instead. Well, it gets the
  28. # job done, doesn't it?
  29.  
  30. all:
  31.    @execute <<
  32.       echo "*e[32m---- Creating 680xx version...*e[0m"
  33.       echo "*e[32m---- Working in amiga directory...*e[0m"
  34.       cd amiga
  35.       smake -s CPU=ANY
  36.       cd /
  37.       echo "*e[32m---- Working in amiga/ssh directory...*e[0m"
  38.       cd amiga/ssh
  39.       smake -s CPU=ANY
  40.       cd //
  41.       echo "*e[32m---- Working in zlib directory...*e[0m"
  42.       cd zlib
  43.       smake -s CPU=ANY
  44.       cd /
  45.       echo "*e[32m---- Working in diff directory...*e[0m"
  46.       cd diff
  47.       smake -s CPU=ANY
  48.       cd /
  49.       echo "*e[32m---- Working in lib directory...*e[0m"
  50.       cd lib
  51.       smake -s CPU=ANY
  52.       cd /
  53.       echo "*e[32m---- Working in src directory...*e[0m"
  54.       cd src
  55.       smake -s CPU=ANY
  56.       echo "*e[32m---- Copying cvs to current directory...*e[0m"
  57.       copy cvs /
  58.       echo "*e[32m---- ... done*e[0m"
  59.    <
  60.  
  61. 020:
  62.    @execute <<
  63.       echo "*e[32m---- Creating 68020 version...*e[0m"
  64.       echo "*e[32m---- Working in amiga directory...*e[0m"
  65.       cd amiga
  66.       smake -s CPU=68020
  67.       cd /
  68.       echo "*e[32m---- Working in amiga/ssh directory...*e[0m"
  69.       cd amiga/ssh
  70.       smake -s CPU=68020
  71.       cd //
  72.       echo "*e[32m---- Working in zlib directory...*e[0m"
  73.       cd zlib
  74.       smake -s CPU=68020
  75.       cd /
  76.       echo "*e[32m---- Working in diff directory...*e[0m"
  77.       cd diff
  78.       smake -s CPU=68020
  79.       cd /
  80.       echo "*e[32m---- Working in lib directory...*e[0m"
  81.       cd lib
  82.       smake -s CPU=68020
  83.       cd /
  84.       echo "*e[32m---- Working in src directory...*e[0m"
  85.       cd src
  86.       smake -s CPU=68020
  87.       echo "*e[32m---- Copying cvs to current directory...*e[0m"
  88.       copy cvs /cvs020
  89.       echo "*e[32m---- ... done*e[0m"
  90.    <
  91.  
  92. 030:
  93.    @execute <<
  94.       echo "*e[32m---- Creating 68030 version...*e[0m"
  95.       echo "*e[32m---- Working in amiga directory...*e[0m"
  96.       cd amiga
  97.       smake -s CPU=68030
  98.       cd /
  99.       echo "*e[32m---- Working in amiga/ssh directory...*e[0m"
  100.       cd amiga/ssh
  101.       smake -s CPU=68030
  102.       cd //
  103.       echo "*e[32m---- Working in zlib directory...*e[0m"
  104.       cd zlib
  105.       smake -s CPU=68030
  106.       cd /
  107.       echo "*e[32m---- Working in diff directory...*e[0m"
  108.       cd diff
  109.       smake -s CPU=68030
  110.       cd /
  111.       echo "*e[32m---- Working in lib directory...*e[0m"
  112.       cd lib
  113.       smake -s CPU=68030
  114.       cd /
  115.       echo "*e[32m---- Working in src directory...*e[0m"
  116.       cd src
  117.       smake -s CPU=68030
  118.       echo "*e[32m---- Copying cvs to current directory...*e[0m"
  119.       copy cvs /cvs030
  120.       echo "*e[32m---- ... done*e[0m"
  121.    <
  122.  
  123.  
  124. 040:
  125.    @execute <<
  126.       echo "*e[32m---- Creating 68040 version...*e[0m"
  127.       echo "*e[32m---- Working in amiga directory...*e[0m"
  128.       cd amiga
  129.       smake -s CPU=68040
  130.       cd /
  131.       echo "*e[32m---- Working in amiga/ssh directory...*e[0m"
  132.       cd amiga/ssh
  133.       smake -s CPU=68040
  134.       cd //
  135.       echo "*e[32m---- Working in zlib directory...*e[0m"
  136.       cd zlib
  137.       smake -s CPU=68040
  138.       cd /
  139.       echo "*e[32m---- Working in diff directory...*e[0m"
  140.       cd diff
  141.       smake -s CPU=68040
  142.       cd /
  143.       echo "*e[32m---- Working in lib directory...*e[0m"
  144.       cd lib
  145.       smake -s CPU=68040
  146.       cd /
  147.       echo "*e[32m---- Working in src directory...*e[0m"
  148.       cd src
  149.       smake -s CPU=68040
  150.       echo "*e[32m---- Copying cvs to current directory...*e[0m"
  151.       copy cvs /cvs040
  152.       echo "*e[32m---- ... done*e[0m"
  153.    <
  154.  
  155. 060:
  156.    @execute <<
  157.       echo "*e[32m---- Creating 68060 version...*e[0m"
  158.       echo "*e[32m---- Working in amiga directory...*e[0m"
  159.       cd amiga
  160.       smake -s CPU=68060
  161.       cd /
  162.       echo "*e[32m---- Working in amiga/ssh directory...*e[0m"
  163.       cd amiga/ssh
  164.       smake -s CPU=68060
  165.       cd //
  166.       echo "*e[32m---- Working in zlib directory...*e[0m"
  167.       cd zlib
  168.       smake -s CPU=68060
  169.       cd /
  170.       echo "*e[32m---- Working in diff directory...*e[0m"
  171.       cd diff
  172.       smake -s CPU=68060
  173.       cd /
  174.       echo "*e[32m---- Working in lib directory...*e[0m"
  175.       cd lib
  176.       smake -s CPU=68060
  177.       cd /
  178.       echo "*e[32m---- Working in src directory...*e[0m"
  179.       cd src
  180.       smake -s CPU=68060
  181.       echo "*e[32m---- Copying cvs to current directory...*e[0m"
  182.       copy cvs /cvs060
  183.       echo "*e[32m---- ... done*e[0m"
  184.    <
  185.  
  186. clean:
  187.    @execute <<
  188.       echo "*e[32m---- Cleaning all object files in all directories...*e[0m"
  189.       cd amiga
  190.       smake -s clean
  191.       cd /
  192.       cd amiga/ssh
  193.       smake -s clean
  194.       cd //
  195.       cd zlib
  196.       smake -s clean
  197.       cd /
  198.       cd diff
  199.       smake -s clean
  200.       cd /
  201.       cd lib
  202.       smake -s clean
  203.       cd /
  204.       cd src
  205.       smake -s clean
  206.       echo "*e[32m---- ... done*e[0m"
  207.    <
  208.  
  209. cleanall:
  210.    @execute <<
  211.       echo "*e[32m---- Cleaning all object files & libraries in all directories...*e[0m"
  212.       cd amiga
  213.       smake -s cleanall
  214.       cd /
  215.       cd amiga/ssh
  216.       smake -s cleanall
  217.       cd //
  218.       cd zlib
  219.       smake -s cleanall
  220.       cd /
  221.       cd diff
  222.       smake -s cleanall
  223.       cd /
  224.       cd lib
  225.       smake -s cleanall
  226.       cd /
  227.       cd src
  228.       smake -s cleanall
  229.       echo "*e[32m---- ... done*e[0m"
  230.    <
  231.  
  232.